<%-- 
    Document   : exScriptlets
    Created on : 20/02/2013, 15:47:10
    Author     : Rafael
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <link href="css/styles.css" rel="stylesheet" type="text/css" />
        <title>Conversao Celcius Fahrenheit </title>
    </head>
    <body>
        <%
            String valor = request.getParameter("celcius");
            if (valor != null) {
                double f = Double.parseDouble(valor) * 9 / 5 + 32;
                out.println("<P>");
                out.println("<h2>Valor em Fahrenheit:" + f + "<h2><br>");
            }
        %>
        <form action=conversao.jsp method=POST>
            Celcius: <input type=text size=20 name=celcius><br>
            <input type=submit>
        </form>
    </body>
</html>
</html>
